package com.hx.eaz.models

import java.math.BigDecimal

data class CompanyInfo(
        val name: String,
        val country: String,
        val sort: Int,
        val lastSort: Int,
        val inCome: BigDecimal,
        val profit: BigDecimal,
        val categoryStr: String
) {
    val cateList = categoryStr.split(Regex("[,，、；;]")).toList()

    fun sortChange(): Int {
        val l = if (lastSort == -1) {
            500
        }else {
            lastSort
        }
        return l - sort
    }
}